package com.zwp.common.repository

import com.zhanwp.module_home.entity.*
import com.zwp.base.entity.BaseResult
import retrofit2.http.GET
import retrofit2.http.Path


interface WanService {

    /**
     * Desc: 首页文章列表
     * <p>
     * Author: zhanweiping
     * Date: 2021/8/12
     *
     * @param page
     */
    @GET("/article/list/{page}/json")
    suspend fun getArticles(@Path("page") page: Int): BaseResult<Articles>

    /**
     * Desc:首页banner
     * <p>
     * Author: zhanweiping
     * Date: 2021/8/12
     */
    @GET("/banner/json")
    suspend fun getBanners():BaseResult<List<Banner>>

    /**
     * Desc:常用网站
     * <p>
     * Author: zhanweiping
     * Date: 2021/8/12
     */
    @GET("/friend/json")
    suspend fun getFriendWebsits():BaseResult<List<FriendWebsite>>

    /**
     * Desc:搜索热词
     * <p>
     * Author: zhanweiping
     * Date: 2021/8/12
     */
    @GET("/hotkey/json")
    suspend fun getHotkeys():BaseResult<List<HotKey>>

    /**
     * Desc:置顶文章
     * <p>
     * Author: zhanweiping
     * Date: 2021/8/12
     */
    @GET("/article/top/json")
    suspend fun getTopArticles():BaseResult<List<Article>>
}